Laravel 9 Auth Logout Not Working{{ Routelogout }} Showing The

[Solved] Laravel 9 Auth Logout Not Working{{ Routelogout }} Showing The | Php Frameworks Laravel - Code Explorer | yomemimo.com
Question : laravel 9 auth logout not working{{ route('logout') }} showing The GET method is not supported for this route. Supported methods: POST.

Answered by : distinct-donkey-s9bhymp2fvdd

Route::get('logout', function ()
{ auth()->logout(); Session()->flush(); return Redirect::to('/');
})->name('logout');

Source : https://stackoverflow.com/questions/58316731/how-to-logout-with-a-get-request-in-laravel | Last Update : Thu, 29 Dec 22

Question : laravel 9 auth logout not working{{ route('logout') }} showing The GET method is not supported for this route. Supported methods: POST.

Answered by : distinct-donkey-s9bhymp2fvdd

<a href="{{ route('logout') }}">Logout</a>

Source : https://stackoverflow.com/questions/58316731/how-to-logout-with-a-get-request-in-laravel | Last Update : Thu, 29 Dec 22

Answers related to laravel 9 auth logout not working{{ routelogout }} showing the get method is not supported for this route supported methods post

Code Explorer Popular Question For Php Frameworks Laravel